package com.jk.interfaces;

import com.jk.dto.TemPosition;
import com.jk.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.PostConstruct;
import java.util.List;

public interface TemPositionServiceApi {
   /***
    * @description: 分页查询
           * @param: [temPosition, pageNum, pageSize]
           * @return: com.jk.pojo.PagedResponse<com.jk.dto.TemPosition>
           * @author yzf
           * @date: 2025/2/13 10:15
    */ 
    @PostMapping("/tem/findTemList")
    public PagedResponse<TemPosition> findTemList(@RequestBody TemPosition temPosition , @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);

    /*** 
     * @description: 删除
            * @param: [id]
            * @return: void
            * @author yzf
            * @date: 2025/2/13 10:15
     */ 
    @DeleteMapping("/tem/delTemById")
    public void delTemById(@RequestParam Integer id);
    
    /*** 
     * @description: 新增
            * @param: [temPosition]
            * @return: void
            * @author yzf
            * @date: 2025/2/13 10:17
     */ 
    @PostMapping("/tem/addTem")
    public void addTem(@RequestBody TemPosition temPosition);

    /**
     * @description: 回显
            * @param: [id]
            * @return: com.jk.dto.TemPosition
            * @author yzf
            * @date: 2025/2/14 11:47
     */
    @GetMapping("/tem/getTem")
    public TemPosition getTem(@RequestParam(value = "id") Integer id);
    
    /** 
     * @description: 大修改
            * @param: [temPosition]
            * @return: void
            * @author yzf
            * @date: 2025/2/13 10:21
     */ 
    @PostMapping("/tem/updateTem")
    public void updateTem(@RequestBody TemPosition temPosition);
    
    /** 
     * @description: 修改状态
            * @param: [id]
            * @return: void
            * @author yzf
            * @date: 2025/2/13 10:42
     */
    @PostMapping("/tem/updateStatus")
    public void  updateStatus(@RequestParam Integer id);

    /** 
     * @description: 修改加·停招原因
            * @param: [temPosition]
            * @return: void
            * @author yzf
            * @date: 2025/2/13 15:54
     */ 
    @PostMapping("/tem/updateState")
    public void  updateState(@RequestBody TemPosition temPosition);



    @PostMapping("/tem/findTemPosition")
    public List<TemPosition> findTemPosition(@RequestBody TemPosition temPosition);

}
